package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.dao.SnComInDetailMapper;
import com.yidu.model.SnComInDetail;
import com.yidu.model.SnProDetail;
import com.yidu.service.SnComInDetailService;
/**
 * 商品库存记录实现类
 * @author chensituo
 * @date 2018年12月4日 上午9:26:27
 */
@Service
public class SnComInDetailServiceImpl implements SnComInDetailService{
	/**
	 * 注入商品库存记录mapper
	 */
	@Resource
	SnComInDetailMapper snComInDetailMapper;
	@Override
	public int findCount(Map<String, Object> maps) {
		//调用查询行数的方法
		return snComInDetailMapper.findCount(maps);
	}
	@Override
	public List<SnProDetail> findAll(Map<String, Object> maps) {
		//查询所有
		return snComInDetailMapper.findAll(maps);
	}
}
